package cn.com.api.service.impl;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiGoodsActType;
import cn.com.api.entity.ApiGoodsActTypeRes;
import cn.com.api.mapper.ApiGoodsActTypeMapper;
import cn.com.api.service.ApiGoodsActTypeService;

/**
 * 推荐分类商品
 * 
 * 
 */
@Service
public class ApiGoodsActTypeServiceImpl implements ApiGoodsActTypeService {

	@Autowired
	private ApiGoodsActTypeMapper apiGoodsActTypeMapper;

	@Override
	public void insert(ApiGoodsActType actType) {
		apiGoodsActTypeMapper.insert(actType);
	}

	@Override
	public List<Map<String, String>> goodsActByCity(String cityid) {
		return apiGoodsActTypeMapper.goodsActByCity(cityid);
	}

	/*@Override
	public List<Map<String, String>> goodsActInfo(String typeid, String cityid,
			String createtime) {
		return apiGoodsActTypeMapper.goodsActInfo(typeid, cityid, createtime);
	}*/
	@Override
	public List<ApiGoodsActTypeRes> goodsActInfo(String typeid, String cityid,
			String createtime) {
		return apiGoodsActTypeMapper.goodsActInfo(typeid, cityid, createtime);
	}
	
	@Override
	public List<Map<String, String>> actTypeList(String cityid,String enable) {
		return apiGoodsActTypeMapper.actTypeList(cityid,enable);
	}

	@Override
	public void update(ApiGoodsActType actType) {
		apiGoodsActTypeMapper.update(actType);
	}

	@Override
	public void deleteById(String id) {
		apiGoodsActTypeMapper.deleteById(id);
	}

}
